


import time

def timeIt(fn):
    def wrapped(self, *args, **kwargs):
        st_time = time.time()
        res = fn(self, *args, **kwargs)
        print fn.__name__ + " took %f seconds." %(time.time()-st_time)
        return res
    return wrapped
        